package com.example.custom.rpc.register;
/**
 * Copyright (c) 2018-2022 ThunderSoft
 * All Rights Reserved by Thunder Software Technology Co., Ltd and its affiliates.
 * You may not use, copy, distribute, modify, transmit in any form this file
 * except in compliance with ThunderSoft in writing by applicable law.
 */


import java.util.HashMap;
import java.util.Map;

/**
 * @author liyuncong
 * @version 1.0
 * @file LocalRegister
 * @brief LocalRegister
 * @details LocalRegister
 * @date 2022-11-02
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2022-11-02               liyuncong          Created
 */
public class LocalRegister {

    private static Map<String, Class> map = new HashMap<String, Class>();

    public static void register(String interfaceName, Class implCass) {
        map.put(interfaceName, implCass);
    }

    public static Class getImpl(String interfaceName) {
        return map.get(interfaceName);
    }

}
